import Vue from 'vue'
import VueRouter from 'vue-router'
import Article from '../view/article'
import List from '../view/list'
import Login from '../view/login'
import Register from '../view/register'
import NotFound from '../NotFound'
 
Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/article',
      component:Article,
    },
    {
      path: '/',
      redirect:'/Article'
    },
    {
      path: '/article/:name/:actor',
      component:Article,
    },
    {
      path: '/list',
      component:List,
    },
    {
      path: '/login',
      component:Login,
    },
    {
      path: '/register',
      component:Register,
    },
    {
      path: '/*',
      component:NotFound,
    },
  ]
})
export default router